import { targetMap } from "./track";
export const tigger = (target, key) => {
  const depsMap = targetMap.get(target);
  if (!depsMap) return; // 没有追踪effect
  // 视图渲染effect 排队更新effect
  const dep = depsMap.get(key);
  if (dep) {
    dep.forEach((effect) => {
      effect();
    });
  }
};
